#include "appviewimpl.h"
#include <net/inet.h>


CAppViewImpl::CAppViewImpl(void)
{

}
CAppViewImpl::~CAppViewImpl(void)
{
	logi("CAppViewImpl::~CAppViewImpl");
}
std_method_impl CAppViewImpl::Init(int Argc, basic_tchar* Argv[], IBase* pRot, IBase* pBase)
{
	rc_assert(pRot != NULL, E_FAIL)
	return pRot->QueryInterface(IID_IComRotMessage, (void**)&m_pRot);
}
std_method_impl CAppViewImpl::Uninit()
{
	HRESULT		hr = S_OK;

	m_pRot.dispose();

	return hr;
}
std_method_impl CAppViewImpl::Start(_pinstance hInstance, UINT uType)
{
	HRESULT		hr = S_OK;

	_lComPtr<INet>	pINet;

	
	m_pRot->GetObject(CLSID_INet, IID_INet, (IBase**)&pINet.m_p);
	rc_assert(pINet.m_p != INULL, E_FAIL)

	//_lComPtr<IDns>	pIDns;
	//pINet->CreateProtocol(Protocol_dns, (IBase**)&pIDns);

	//pIDns->Send("www.baidu.com", NULL);

	//pIDns->Close();

	
	return hr;
}
std_method_impl CAppViewImpl::Stop(UINT uExitCode)
{
	HRESULT		hr = S_OK;

	return hr;
}
